﻿PageView = require './../page_view'
module.exports = class MyPageView extends PageView
	
	subscribeToControlsEvents:->
	subscribeToDataSourceEvents: ->

	initialize: ->
		@subscribeToDataSourceEvents();
		@subscribeToControlsEvents();
		super

	render: ->
		console.debug('MyPageView#render')
		super

	renderSubviews: ->
		super
		console.debug('MyPageView#renderSubviews-Start')

	#closes one subview
	closeSubView: (name)->
		detView = @subviewsByName[name]
		if detView?
			$(detView.el).remove();
		else
			@removeSubview (name);
